package com.daisy.entity;

import java.util.List;

/**
 * @version: V1.0
 * @author: daisy
 * @className: MenuEntity
 * @packageName: com.daisy.entity
 * @description: 菜单实体类
 * @data: 2020-06-14 21:53
 **/
public class MenuEntity {

    /* 主键，唯一标识符 */
    private Integer id;
    /** 菜单描述文本 */
    private String title;
    /** 菜单的图标 */
    private String icon;
    /** 菜单地址 */
    private String href;
    /** 是否直接是地址，是地址高亮显示 */
    private boolean spread;
    /** 打开方式，可有可无的属性 */
    private String target;
    /** 上级菜单的主键 */
    private Integer pid;
    /** 子菜单集合 */
    private List<MenuEntity> children;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public List<MenuEntity> getChildren() {
        return children;
    }

    public void setChildren(List<MenuEntity> children) {
        this.children = children;
    }
}
